<!DOCTYPE html>
<html>
<head>
  <title>DVXT Library</title>
  <%= stylesheet_link_tag    "users" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  

</head>
<body>
<!------------------------------------------------------------------------------------------>
<div class="header_form">
	<h1>Welcome Administrator : <%= User.find_by_id(session[:user_id]).full_name %></h1> 
</div>

<div class="logout_form">
	<%= button_to 'Logout', logout_path, method: :delete %>
	<br>
</div>

<!------------------------------------------------------------------------------------------>
<div class="body_form_show">

<div class="picture_edit_form">
	<%= image_tag(@user.image_url, :height => "80px", :width => "120px") %>
	<br>
	<%= @user.full_name %>
</div>

<div class="text_form">
<p id="notice"><%= notice %></p>

<p>
  <b>Username:</b>
  <%= @user.username %>
</p>


<p>
  <b>Full name:</b>
  <%= @user.full_name %>
</p>

<p>
  <b>Email:</b>
  <%= @user.email %>
</p>

<p>
  <b>Identify card:</b>
  <%= @user.identify_card %>
</p>
<br />

|<%= link_to 'Edit', edit_user_path(@user) %>|	| 
|<%= link_to 'Delete', @user, confirm: 'Are you sure?', method: :delete %>|	|
<%= link_to 'Back', users_path %>|

</div>
</div>
</body>
